package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_occupy", desc = "逐鹿隋唐-占领日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_occupy", isCross = true)
public class LogCrossSuiTangOccupy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "chasedeer_groid", isIndex = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "战场id", dataAttribute = "chasedeer_battle")
    private long warTypeId;
    @FieldTypeAnnotation(desc = "小组id", dataAttribute = "chasedeer_teamid")
    private long actGroupId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "兵力值", dataAttribute = "chasedeer_troops")
    private long soldierNum;
    @FieldTypeAnnotation(desc = "被攻击用户id", dataAttribute = "chasedeer_beattid")
    private long beAckedId;
    @FieldTypeAnnotation(desc = "被攻击用户兵力值", dataAttribute = "chasedeer_beattroops")
    private long beAckedSoldierNum;
    @FieldTypeAnnotation(desc = "城市id", dataAttribute = "chasedeer_occupyarea")
    private int cityId;
    @FieldTypeAnnotation(desc = "行军类型：0未成功占领，1成功占领", dataAttribute = "chasedeer_marchtype")
    private int moveType;
    @FieldTypeAnnotation(desc = "获得加成效果id（同一buff获取多次就保存多次）", dataAttribute = "chasedeer_addid", saveJson = true)
    private List<Integer> buffId;
    @FieldTypeAnnotation(desc = "消耗兵力", dataAttribute = "chasedeer_usertroops")
    private int soldierCost;
    @FieldTypeAnnotation(desc = "获得军功", dataAttribute = "chasedeer_getcredit")
    private int getZhanGong;
    @FieldTypeAnnotation(desc = "被攻击方消耗兵力", dataAttribute = "chasedeer_beattusetroops")
    private int beAckedSoldierCost;
    @FieldTypeAnnotation(desc = "被攻击方获得军功", dataAttribute = "chasedeer_beattgetcredit")
    private int beAckedGetZhanGong;
    @FieldTypeAnnotation(desc = "获得势力值", dataAttribute = "chasedeer_getforce")
    private int unionPoint;

    public LogCrossSuiTangOccupy(int activityId, int groupId, long warTypeId, long actGroupId, long userId, long soldierNum, long beAckedId, long beAckedSoldierNum, int cityId, int moveType, List<Integer> buffId, int soldierCost, int getZhanGong, int beAckedSoldierCost, int beAckedGetZhanGong, int unionPoint) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.warTypeId = warTypeId;
        this.actGroupId = actGroupId;
        this.userId = userId;
        this.soldierNum = soldierNum;
        this.beAckedId = beAckedId;
        this.beAckedSoldierNum = beAckedSoldierNum;
        this.cityId = cityId;
        this.moveType = moveType;
        this.buffId = buffId;
        this.soldierCost = soldierCost;
        this.getZhanGong = getZhanGong;
        this.beAckedSoldierCost = beAckedSoldierCost;
        this.beAckedGetZhanGong = beAckedGetZhanGong;
        this.unionPoint = unionPoint;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
